package com.tbvtc.agriculturalcreditchainserver2025.mapper;

import com.tbvtc.agriculturalcreditchainserver2025.vo.ConsumerVo.CropVo;
import com.tbvtc.agriculturalcreditchainserver2025.vo.ConsumerVo.PlaceOrderVo;
import org.apache.ibatis.annotations.*;

import java.util.List;

@Mapper
public interface ConsumerMapper {
    @Insert("insert into orders (order_items,is_discount) values (#{cropName},#{isDiscount})")
    void insertOrder(PlaceOrderVo placeOrderVo);

    @Select("select * from crop")
    List<CropVo> findAll();


}
